home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIPrintStatusFeedback.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  154 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPrintStatusFeedback.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPrintStatusFeedback_h__
  6. #define __gen_nsIPrintStatusFeedback_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDocShell; /* forward declaration */
  18.  
  19. class nsIDOMWindowInternal; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIPrintStatusFeedback */
  23. #define NS_IPRINTSTATUSFEEDBACK_IID_STR "19855dff-3248-4902-b196-93ee4c477880"
  24.  
  25. #define NS_IPRINTSTATUSFEEDBACK_IID \
  26.   {0x19855dff, 0x3248, 0x4902, \
  27.     { 0xb1, 0x96, 0x93, 0xee, 0x4c, 0x47, 0x78, 0x80 }}
  28.  
  29. class NS_NO_VTABLE nsIPrintStatusFeedback : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRINTSTATUSFEEDBACK_IID)
  33.  
  34.   /* void showStatusString (in wstring status); */
  35.   NS_IMETHOD ShowStatusString(const PRUnichar *status) = 0;
  36.  
  37.   /* void startMeteors (); */
  38.   NS_IMETHOD StartMeteors(void) = 0;
  39.  
  40.   /* void stopMeteors (); */
  41.   NS_IMETHOD StopMeteors(void) = 0;
  42.  
  43.   /* void showProgress (in long percent); */
  44.   NS_IMETHOD ShowProgress(PRInt32 percent) = 0;
  45.  
  46.   /* [noscript] void setDocShell (in nsIDocShell shell, in nsIDOMWindowInternal window); */
  47.   NS_IMETHOD SetDocShell(nsIDocShell *shell, nsIDOMWindowInternal *window) = 0;
  48.  
  49.   /* void closeWindow (); */
  50.   NS_IMETHOD CloseWindow(void) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIPRINTSTATUSFEEDBACK \
  56.   NS_IMETHOD ShowStatusString(const PRUnichar *status); \
  57.   NS_IMETHOD StartMeteors(void); \
  58.   NS_IMETHOD StopMeteors(void); \
  59.   NS_IMETHOD ShowProgress(PRInt32 percent); \
  60.   NS_IMETHOD SetDocShell(nsIDocShell *shell, nsIDOMWindowInternal *window); \
  61.   NS_IMETHOD CloseWindow(void); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIPRINTSTATUSFEEDBACK(_to) \
  65.   NS_IMETHOD ShowStatusString(const PRUnichar *status) { return _to ShowStatusString(status); } \
  66.   NS_IMETHOD StartMeteors(void) { return _to StartMeteors(); } \
  67.   NS_IMETHOD StopMeteors(void) { return _to StopMeteors(); } \
  68.   NS_IMETHOD ShowProgress(PRInt32 percent) { return _to ShowProgress(percent); } \
  69.   NS_IMETHOD SetDocShell(nsIDocShell *shell, nsIDOMWindowInternal *window) { return _to SetDocShell(shell, window); } \
  70.   NS_IMETHOD CloseWindow(void) { return _to CloseWindow(); } 
  71.  
  72. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  73. #define NS_FORWARD_SAFE_NSIPRINTSTATUSFEEDBACK(_to) \
  74.   NS_IMETHOD ShowStatusString(const PRUnichar *status) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowStatusString(status); } \
  75.   NS_IMETHOD StartMeteors(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartMeteors(); } \
  76.   NS_IMETHOD StopMeteors(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopMeteors(); } \
  77.   NS_IMETHOD ShowProgress(PRInt32 percent) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowProgress(percent); } \
  78.   NS_IMETHOD SetDocShell(nsIDocShell *shell, nsIDOMWindowInternal *window) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocShell(shell, window); } \
  79.   NS_IMETHOD CloseWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseWindow(); } 
  80.  
  81. #if 0
  82. /* Use the code below as a template for the implementation class for this interface. */
  83.  
  84. /* Header file */
  85. class nsPrintStatusFeedback : public nsIPrintStatusFeedback
  86. {
  87. public:
  88.   NS_DECL_ISUPPORTS
  89.   NS_DECL_NSIPRINTSTATUSFEEDBACK
  90.  
  91.   nsPrintStatusFeedback();
  92.  
  93. private:
  94.   ~nsPrintStatusFeedback();
  95.  
  96. protected:
  97.   /* additional members */
  98. };
  99.  
  100. /* Implementation file */
  101. NS_IMPL_ISUPPORTS1(nsPrintStatusFeedback, nsIPrintStatusFeedback)
  102.  
  103. nsPrintStatusFeedback::nsPrintStatusFeedback()
  104. {
  105.   /* member initializers and constructor code */
  106. }
  107.  
  108. nsPrintStatusFeedback::~nsPrintStatusFeedback()
  109. {
  110.   /* destructor code */
  111. }
  112.  
  113. /* void showStatusString (in wstring status); */
  114. NS_IMETHODIMP nsPrintStatusFeedback::ShowStatusString(const PRUnichar *status)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* void startMeteors (); */
  120. NS_IMETHODIMP nsPrintStatusFeedback::StartMeteors()
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* void stopMeteors (); */
  126. NS_IMETHODIMP nsPrintStatusFeedback::StopMeteors()
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* void showProgress (in long percent); */
  132. NS_IMETHODIMP nsPrintStatusFeedback::ShowProgress(PRInt32 percent)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* [noscript] void setDocShell (in nsIDocShell shell, in nsIDOMWindowInternal window); */
  138. NS_IMETHODIMP nsPrintStatusFeedback::SetDocShell(nsIDocShell *shell, nsIDOMWindowInternal *window)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* void closeWindow (); */
  144. NS_IMETHODIMP nsPrintStatusFeedback::CloseWindow()
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* End of implementation class template. */
  150. #endif
  151.  
  152.  
  153. #endif /* __gen_nsIPrintStatusFeedback_h__ */
  154.